import request from '@/utils/request'

// 查询边日志-事件告警列表
export function listLogEvent(query) {
  return request({
    url: '/manager/logEvent/list',
    method: 'get',
    params: query
  })
}

// 查询边日志-事件告警所有列表
export function listAllLogEvent(query) {
  return request({
    url: '/manager/logEvent/listAll',
    method: 'get',
    params: query
  })
}

// 查询边日志-事件告警详细
export function getLogEvent(logId) {
  return request({
    url: '/manager/logEvent/getInfo/' + logId,
    method: 'get'
  })
}

// 新增边日志-事件告警
export function addLogEvent(data) {
  return request({
    url: '/manager/logEvent/add',
    method: 'post',
    data: data
  })
}

// 修改边日志-事件告警
export function updateLogEvent(data) {
  return request({
    url: '/manager/logEvent/edit',
    method: 'post',
    data: data
  })
}

// 删除边日志-事件告警
export function delLogEvent(logId) {
  return request({
    url: '/manager/logEvent/remove/' + logId,
    method: 'get'
  })
}
